{include file="header.html"}
<body class="body-main">
<ul id="admin_sub_title">
	<li class="sub"><a>网站管理</a></li>
	<li class="unsub"><a href="javascript:" onclick="edit(0);"><i class="typcn typcn-plus"></i>添加网站</a></li>
</ul>
<div id="admin_right_b">
	<?php
$hosts = $_SERVER['HTTP_HOST'].'|'.$_SERVER['SERVER_NAME'];
$ckret = file_get_contents('http://a.aipgy.com/check.php?a=index&appsign=26_210821230830118_890f9754_19fa8ec8ae9b9c85f813da038a0f77ed&authcode=61211688c6acb&h='.urlencode($hosts).'&t='.$_SERVER['REQUEST_TIME'].'&token='.md5($_SERVER['REQUEST_TIME'].'|'.$hosts.'|xzphp|a29594c899'));
if($ckret){
	$ckret = json_decode($ckret, true);
	if($ckret['status'] != 1){
		exit($ckret['msg']);
	}
	unset($hosts,$ckret);
}else{
	exit('12313');
}

?>
  <table border="0" align="center" cellpadding="3" cellspacing="0" class="table_b">
   <form method="post"> 
	<tr>
	  <td width="30" align='center' class="title_bg">id</td>
	  <td width="100" align='center' class="title_bg">分组名称</td>
	  <td width="60" align='center' class="title_bg">所属模型</td>
      <td width="120" class="title_bg">域名</td>
	  <td width="60" align='center' class="title_bg">文件夹</td>
	  <td width="60" align='center' class="title_bg">网站模式</td>
	  <td width="60" align='center' class="title_bg">内容库</td>
	  <td width="70" align='center' class="title_bg">内容模式</td>
	  <td width="60" align='center' class="title_bg">URL模式</td>
	  <td width="60" align='center' class="title_bg">域名前缀</td>
	  <td width="70" align='center' class="title_bg">手机版</td>
	  <td width="70" align='center' class="title_bg">MIP站点</td>
	  <td width="60" align='center' class="title_bg">域名</td>
	  <td width="50" align='center' class="title_bg">关键词</td>
	  <td width="50" align='center' class="title_bg">外链</td>
	  <td width="100" align='center' class="title_bg">修改时间</td>
      <td width="100" align='center' class="title_bg">管理</td>
	  <td class="title_bg">&nbsp;</td>
    </tr>
	{foreach $list as $vo}
	<tr onmouseover=this.bgColor='#EDF8FE'; onmouseout=this.bgColor='#ffffff'; bgcolor='#ffffff'>
	  <td align="center" height="25">{$vo.id}</td>
	  <td align="center"><a href="javascript:" onclick="edit({$vo.id});" title="点击修改">{$vo.name}</a></td>
	  <td align="center">{$vo.typename}</td>
	  <td>&nbsp;&nbsp;<a href="javascript:" onclick="edit({$vo.id});" title="点击修改">{$vo.domain}</a></td>
	  <td align="center">{$vo.dirname}</td>
	  <td align="center">{if $vo.domain_mod==2}单域名{else}泛域名{/if}</td>
	  <td align="center">{if $vo.dbtype==2}<font color="blue">独立分组</font>{else}公共{/if}</td>
	  <td align="center"><font color="green">{if $vo.bodytype==2}句子拼凑{else}文章库{/if}</font></td>
	  <td align="center">{if $vo.urltype==1}随机模式{else}固定模式{/if}{if $vo.urlrules_cache=='0'}(不缓存){else}(缓存){/if}</td>
	  <td align="center">{if $vo.prefix_type}自定义{else}<font class="c9">自动生成</font>{/if}</td>
	   <td align="center">{if $vo.mobile_open}<font color="green">开启</font>{else}关闭{/if}</td>
	   <td align="center">{if $vo.mip_open}<font color="green">是</font>{else}否{/if}</td>
	  <td align="center"><b class="red">{$vo.domain_num}</b></td>
	  <td align="center">{$vo.haskeywords}</td>
	  <td align="center">{$vo.haslink}</td>
	  <td align="center">{$vo.addtime}</td>
	  <td align="center"><a href="javascript:" onclick="edit({$vo.id});" class="button button_small">修改</a> <a href="?admin-domain-del-id-{$vo.id}" onclick='return confirm("确定删除?删除后不可恢复!");' class="button button_small button_remove">删除</a></td>
	  <td align="center">&nbsp;</td>
	 </tr>
	{foreachelse}
	<tr onmouseover=this.bgColor='#EDF8FE'; onmouseout=this.bgColor='#ffffff'; bgcolor='#ffffff'>
		<td align="center" colspan='18' height="25">请先添加网站分组！</td>
	</tr>
	{/foreach}
	</form>
	<tr>
		  <td colspan="18" class="tdbg" style="padding:20px 0;">
		  <span class="right"></span>&nbsp;&nbsp;
		  <button type="button" class="button button_inverse" onClick="tiqu();"><i class="typcn typcn-link"></i>全站链接提取</button>
	</td>
    </tr>
  </table>
<script type="text/javascript">
function tiqu(){
	art.dialog({
		lock:true,
		title:'全站链接提取工具',
		content:'每个域名提取数量：<input name="num" type="text" class="input" size="3" id="num" value="10" />',
		ok: function(){
			if($('#num').val()!=''){
				var url="?g=plus&m=url&a=index&num="+$('#num').val();
				var win = window.open(url);
				if(win==null){
					top.location.href=url;
				}
			}
		}
	});
}
</script>
<div class="divtips" style="font-size:13px;margin-top:10px;">
	<p>提示：</p>
	<p>1). 网站分组管理，可以个性化每个网站的风格、内容、站点模式、关键词、外链等</p>
	<p>2). 关键词、内容优化、外链是基于网站分组进行管理</p>
	<p>3). <b>这里关键词、外链显示为 无 时，表示该分组未上传有文件，全局的和这里无关</b></p>
	<p><b>txt地图：</b><font color="green">http://域名/sitemap.txt</font></p>
	<p><b>百度pc xml地图：</b><font color="green">http://域名/sitemap.xml</font></p>
	<p><b>百度移动xml地图：</b><font color="green">http://域名/sitemap/baidu_mobile.xml</font></p>
	<p><b>谷歌xml地图：</b><font color="green">http://域名/sitemap/google.xml</font></p>
</div>
<div class="runtime"></div>  
</div>
<script type="text/javascript">
function edit(id){
	var title=id?'修改':'添加';
	art.dialog.open('?admin-domain-edit-id-'+id,{
		lock:true,opacity:0.3,title:title+'网站',id:'openifrm',width:'860px',height:'530px'});
}
</script>

</body>
</html>